#!/bin/sh

## Kill the integod daemon

ps -axcopid,command | grep integod | awk '{ system("kill -9 "$1) }'

## remove /Library/Intego

if [ -d /Library/Intego ]; then
	rm -r /Library/Intego
fi

## remove /Library/Frameworks/EDWOInternet.framework and /Library/Frameworks/EDWOCommon.framework

if [ -d /Library/Frameworks/EDWOInternet.framework ]; then
	rm -r /Library/Frameworks/EDWOInternet.framework
fi

if [ -d /Library/Frameworks/EDWOCommon.framework ]; then
	rm -r /Library/Frameworks/EDWOCommon.framework
fi

## remove /Library/Preferences/Intego

if [ -d /Library/Preferences/Intego ]; then
	rm -r /Library/Preferences/Intego
fi

## remove /Library/Receipts/

if [ -d /Library/Receipts/CommonServices.pkg ]; then
	rm -r /Library/Receipts/CommonServices.pkg
fi
